<!doctype html>
<html>
    <head>
        <title></title>
        <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
        <link rel=stylesheet type=text/css href="<?php echo STATIC_DOMAIN ?>assets/bingo.css">
        <script type="text/javascript">
            var base_url = '<?php echo STATIC_DOMAIN ?>';
        </script>
        <script type="text/javascript" src="<?php echo STATIC_DOMAIN ?>assets/js/jquery-1.8.3.min.js"></script>
        <script type="text/javascript" src="<?php echo STATIC_DOMAIN ?>assets/js/jquery.jeditable.js"></script>
        <script type="text/javascript" src="<?php echo STATIC_DOMAIN ?>assets/js/jquery.jeditable.masked.js"></script>
        <script type="text/javascript" src="<?php echo STATIC_DOMAIN ?>assets/js/jquery.jeditable.autogrow.js"></script>
        <script type="text/javascript" src="<?php echo STATIC_DOMAIN ?>assets/js/jquery.autogrow.js"></script>
        <script type="text/javascript" src="<?php echo STATIC_DOMAIN ?>assets/js/jquery.maskedinput.js"></script>
        <script type="text/javascript" src="<?php echo STATIC_DOMAIN ?>assets/custom.js"></script>
        <style type=text/css>
            .style13 {
                COLOR: #333333
            }
            .style15 {
                COLOR: #616161
            }
            .style20 {
                COLOR: #4435fd
            }
            .style22 {
                FONT-SIZE: 13px; FONT-WEIGHT: bold
            }
            .style8 {
                FONT-SIZE: 14px; FONT-WEIGHT: bold
            }
        </style>
        <meta name=GENERATOR content="MSHTML 11.00.9600.16521">
    </head>
    <body onload="$$.app.zdl.init()">
        <table height="17" cellspacing="0" cellpadding="0" width="100%" border="0">
            <tbody>
                <tr>
                    <td height="7">
                        &nbsp;
                    </td>
                </tr>
            </tbody>
        </table>
        <table cellspacing="0" cellpadding="0" width="852" align="center" border="0" style="margin: 0px auto">
            <tbody>
                <tr>
                    <td bgcolor="#e9eaf3" height="30" valign="middle" colspan="2" align="center">
                        <span class="style8">thông báo hội viên</span>
                    </td>
                    <td width="39">
                        &nbsp;
                    </td>
                    <td bgcolor="#e9eaf3" valign="middle" colspan="2" align="center">
                        <span class="style8">thông báo</span>
                    </td>
                </tr>
                <tr>
                    <td valign="top" colspan="2" align="right">
                        <table cellspacing="1" cellpadding="2" width="421" border="0">
                            <tbody>
                                <tr>
                                    <td bgcolor="#e2f7fd" align="center">
                                        <span class="style20">thông báo mới nhất</span>
                                    </td>
                                </tr>
                                <?php foreach($memberNoti as $m): ?>
                                <tr>
                                    <td bgcolor="#f7f8f8">
                                        <table class="itemPost" data-id="<?php echo $m['id'] ?>" data-type="<?php echo $m['type'] ?>" height="92%" cellspacing="2" cellpadding="1" width="96%" align="center" bgcolor="#ffffff" border="0">
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <span class="style13 <?php echo (Identity::getInstance()->getRole() == '-1') ? 'contentEditable' : '' ?>"><?php echo $m['content'] ?></span>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        <font color="#6d6a68" class="<?php echo (Identity::getInstance()->getRole() == '-1') ? 'timeEditable' : '' ?>"><?php echo $m['time'] ?></font>
                                                    </td>
                                                </tr>
                                                <?php if(Identity::getInstance()->getRole() == '-1'): ?>
                                                    <tr>
                                                        <td style="text-align: center;vertical-align: middle;padding-top: 5px">
                                                            <a href="javascript:void(0);" class="triggerEditContent">Edit Content</a> - 
                                                            <a href="javascript:void(0);" class="triggerEditTime">Edit Time</a> - 
                                                            <a href="javascript:void(0);" class="triggerDelete">Delete</a>
                                                        </td>
                                                    </tr>
                                                <?php endif; ?>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                                <?php endforeach; ?>
                                <?php if(Identity::getInstance()->getRole() == '-1'): ?>
                                <tr class="wrapAddItem">
                                    <td align="center" style="text-align: center">
                                        <input type="button" class="addItem" data-type="1" value="Thêm mới"/>
                                    </td>
                                </tr>
                                <?php endif; ?>
                                <tr>
                                    <td align="center">
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td bgcolor="#e2f7fd" align="center">
                                        <span class="style20">thông báo lịch sử</span>
                                    </td>
                                </tr>
                                <?php $index = 1; ?>
                                <?php foreach($memberHistory as $mH): ?>
                                <tr>
                                    <td bgcolor="#f7f8f8">
                                        <table class="itemPost" data-id="<?php echo $mH['id'] ?>" data-type="<?php echo $mH['type'] ?>"  height="92%" cellspacing="2" cellpadding="1" width="96%" align="center" bgcolor="#ffffff" border="0">
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <b class="style15"><?php echo $index ?>. </b><span class="style15 <?php echo (Identity::getInstance()->getRole() == '-1') ? 'contentEditable' : '' ?>"><?php echo $mH['content'] ?></span>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        <font color="#6d6a68" class="<?php echo (Identity::getInstance()->getRole() == '-1') ? 'timeEditable' : '' ?>"><?php echo $mH['time'] ?></font>
                                                    </td>
                                                </tr>
                                                <?php if(Identity::getInstance()->getRole() == '-1'): ?>
                                                    <tr>
                                                        <td style="text-align: center;vertical-align: middle;padding-top: 5px">
                                                            <a href="javascript:void(0);" class="triggerEditContent">Edit Content</a> - 
                                                            <a href="javascript:void(0);" class="triggerEditTime">Edit Time</a> - 
                                                            <a href="javascript:void(0);" class="triggerDelete">Delete</a>
                                                        </td>
                                                    </tr>
                                                <?php endif; ?>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                                <?php $index++ ?>
                                <?php endforeach; ?>
                                <?php if(Identity::getInstance()->getRole() == '-1'): ?>
                                <tr class="wrapAddItem">
                                    <td align="center" style="text-align: center">
                                        <input type="button" class="addItem" data-type="2" value="Thêm mới"/>
                                    </td>
                                </tr>
                                <?php endif; ?>
                            </tbody>
                        </table>
                    </td>
                    <td width="39" align="center">
                        &nbsp;
                    </td>
                    <td valign="top" colspan="2">
                        <table cellspacing="1" cellpadding="2" width="400" border=0>
                            <tbody>
                                <tr>
                                    <td bgcolor="#e2f7fd" align="center">
                                        <span class="style20">thông báo mới nhất</span>
                                    </td>
                                </tr>
                                <?php foreach($notiNews as $n): ?>
                                <tr>
                                    <td bgcolor="#f7f8f8">
                                        <table class="itemPost" data-id="<?php echo $n['id'] ?>" data-type="<?php echo $n['type'] ?>" height="92%" cellspacing="2" cellpadding="1" width="96%" align="center" bgcolor="#ffffff" border="0">
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <span class="style13 <?php echo (Identity::getInstance()->getRole() == '-1') ? 'contentEditable' : '' ?>"><?php echo $n['content'] ?></span>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        <font color="#6d6a68" class="<?php echo (Identity::getInstance()->getRole() == '-1') ? 'timeEditable' : '' ?>"><?php echo $n['time'] ?></font>
                                                    </td>
                                                </tr>
                                                <?php if(Identity::getInstance()->getRole() == '-1'): ?>
                                                    <tr>
                                                        <td style="text-align: center;vertical-align: middle;padding-top: 5px">
                                                            <a href="javascript:void(0);" class="triggerEditContent">Edit Content</a> - 
                                                            <a href="javascript:void(0);" class="triggerEditTime">Edit Time</a> - 
                                                            <a href="javascript:void(0);" class="triggerDelete">Delete</a>
                                                        </td>
                                                    </tr>
                                                <?php endif; ?>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                                <?php endforeach; ?>
                                <?php if(Identity::getInstance()->getRole() == '-1'): ?>
                                <tr class="wrapAddItem">
                                    <td align="center" style="text-align: center">
                                        <input type="button" class="addItem" data-type="3" value="Thêm mới"/>
                                    </td>
                                </tr>
                                <?php endif; ?>
                                <tr>
                                    <td align="center">
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td bgcolor="#e2f7fd" align="center">
                                        <span class="style20">thông báo lịch sử</span>
                                    </td>
                                </tr>
                                <?php $index = 1; ?>
                                <?php foreach($notiHistory as $nH): ?>
                                <tr>
                                    <td bgcolor="#f7f8f8">
                                        <table class="itemPost" data-id="<?php echo $nH['id'] ?>" data-type="<?php echo $nH['type'] ?>" height="92%" cellspacing="2" cellpadding="1" width="96%" align="center" bgcolor="#ffffff" border="0">
                                            <tbody>
                                                <tr>
                                                    <td>
                                                        <b class="style15"><?php echo $index ?>. </b><span class="style15 <?php echo (Identity::getInstance()->getRole() == '-1') ? 'contentEditable' : '' ?>"><?php echo $nH['content'] ?></span>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="right">
                                                        <font color="#6d6a68" class="<?php echo (Identity::getInstance()->getRole() == '-1') ? 'timeEditable' : '' ?>"><?php echo $nH['time'] ?></font>
                                                    </td>
                                                </tr>
                                                <?php if(Identity::getInstance()->getRole() == '-1'): ?>
                                                    <tr>
                                                        <td style="text-align: center;vertical-align: middle;padding-top: 5px">
                                                            <a href="javascript:void(0);" class="triggerEditContent">Edit Content</a> - 
                                                            <a href="javascript:void(0);" class="triggerEditTime">Edit Time</a> - 
                                                            <a href="javascript:void(0);" class="triggerDelete">Delete</a>
                                                        </td>
                                                    </tr>
                                                <?php endif; ?>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                                <?php $index++; ?>
                                <?php endforeach; ?>
                                <?php if(Identity::getInstance()->getRole() == '-1'): ?>
                                <tr class="wrapAddItem">
                                    <td align="center" style="text-align: center">
                                        <input type="button" class="addItem" data-type="4" value="Thêm mới"/>
                                    </td>
                                </tr>
                                <?php endif; ?>
                            </tbody>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td width="5">
                        &nbsp;
                    </td>
                    <td width="408">
                        &nbsp;
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td width="363">
                        &nbsp;
                    </td>
                    <td width="37">
                        &nbsp;
                    </td>
                </tr>
            </tbody>
        </table>
    </body>
</html>